<?php foreach ($this->getMessages() as $msg): ?><p><?php echo $msg->getText() ?></p><?php endforeach ?>